<template>
  <el-tabs v-model="activeName" class="demo-tabs">
    <el-tab-pane label="用户标签" :name="1">
      <labelList type="1"></labelList>
    </el-tab-pane>
    <el-tab-pane label="群标签" :name="2">
      <labelList type="2"></labelList>
    </el-tab-pane>
  </el-tabs>
</template>

<script setup lang="ts">
import labelList from './labelList.vue'
const route = useRoute()
const activeName = ref(1)
onMounted(() => {
  if (route.query.type) {
    activeName.value = Number(route.query.type)
  }
})
</script>

<style lang="scss" scoped>
:deep(.el-tabs__nav-scroll) {
  background-color: #fff;
  padding-left: 20px;
}
.el-tabs {
  height: 100%;
  display: flex;
  flex-direction: column;
  :deep(.el-tabs__content) {
    flex: 1;
    height: 0;
    box-sizing: border-box;
    .el-tab-pane {
      height: 100%;
    }
  }
}
</style>
